package cn.com.jinhao.provider.business.entity;

import cn.com.jinhao.hotline.commons.base.oracle.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

/**
 * hotline-spring-cloud
 * <p>Description: </p>
 *
 * @author ShaneMew
 * @version 1.0
 * @date 2020/6/5
 * @since 2020/6/5
 */
@Data
@Table(name = "TB_WORK_TERMINAL_CACHE")
@ApiModel(value = "工作接线台信息")
public class WorkTerminalCache extends BaseEntity {
    /**
     * 话务ID
     */
    @Column(name = "CALLID")
    @ApiModelProperty(value = "话务唯一ID")
    @NotBlank(message = "话务ID不能为空")
    private String callId;

    /**
     * 用户编码
     */
    @Column(name = "OPER_CODE")
    @ApiModelProperty(value = "用户编码")
    @NotBlank(message = "用户编码不能为空")
    private String operCode;

    /**
     * 用户
     */
    @Column(name = "OPER")
    @ApiModelProperty(value = "用户")
    @NotBlank(message = "用户不能为空")
    private String oper;

    /**
     * 部门编码
     */
    @Column(name = "DEPT_CODE")
    @ApiModelProperty(value = "部门编码")
    @NotBlank(message = "部门编码不能为空")
    private String deptCode;

    /**
     * 部门
     */
    @Column(name = "DEPT")
    @ApiModelProperty(value = "部门")
    @NotBlank(message = "部门不能为空")
    private String dept;

    /**
     * 工作接线台缓存信息
     */
    @Column(name = "DATA_CACHE")
    @ApiModelProperty(value = "缓存数据信息")
    private String dataCache;
}
